package com.example.mybatisplusdemo.model.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.annotation.TableId;

import java.beans.Transient;
import java.io.Serializable;
import java.time.LocalDate;
import java.util.List;

import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author lxp
 * @since 2025-07-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("c_store")
@ApiModel(value="Store对象", description="")
public class Store implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("merchant_id")
    private Long merchantId;

    @TableField("name")
    private String name;

    @TableField("category")
    private String category;

    @TableField("sub_category")
    private String subCategory;

//    @TableField("tags")
//    private String tags;
    @TableField(value = "tags", typeHandler = JacksonTypeHandler.class)
    private List<String> tags;


    @TableField("description")
    private String description;

    @TableField("cover_image")
    private String coverImage;

    @TableField("opening_hours")
    private String openingHours;

    @TableField("contact_info")
    private String contactInfo;

    @TableField("address")
    private String address;

    @TableField("location")
    private byte[] location;

    @TableField("status")
    private Byte status;

    @TableField("license")
    private String license;

//    @TableField("photos")
    @TableField(value = "photos", typeHandler = JacksonTypeHandler.class)
    private List<String> photos;

    @TableField("joined_at")
    private LocalDate joinedAt;

    @TableField("price_min")
    private Integer priceMin;

    @TableField("price_max")
    private Integer priceMax;

    @TableField("is_deleted")
        @TableLogic
    private Boolean deleted;

}
